#ifndef WACONSTS_H
#define WACONSTS_H

#define WA_GMAP 1
#define WA_GDSA 2
#define WA_GSPECT 3
#define WA_GBLACK 4

#define DELTA_WAVE_L 0.5
//#define DELTA_WAVE_H 4.0
#define DELTA_WAVE_COLOR 125,255,0

#define THETA_WAVE_L 4.0
//#define THETA_WAVE_H 7.0
#define THETA_WAVE_COLOR 0,255,255

#define ALPHA_WAVE_L 7.0
//#define ALPHA_WAVE_H 13.0
#define ALPHA_WAVE_COLOR 255,128,0

#define BETA_WAVE_L 13.0
#define BETA_WAVE_H 30.0
#define BETA_WAVE_COLOR 255,0,255

#define OTHER_WAVE_COLOR 160,160,160

#define FFT_GRAPH_PER_PAGE 5

#define GSF_BMP_HEIGHT 800
#define GSF_BMP_WIDTH 1280

#define MARGIN_WIDTH 80
#define TEXT_FONT L"Cambria"
#define TITLE_SIZE 28
#define TEXT_SIZE 20
#define AXIS_TEXT_SIZE 12
#define DATE_TEXT_SIZE 10
#define AXIS_WIDTH 2.0
#define MAX_SCALER 0.8
#define AXIS_SEGMENT 5


struct FFTOutput{
	int channel;
	int eid;
	std::complex<double> *out;
	int b;
	int e;

	double mean;
	double max;
	double *abs;

	FFTOutput(int ch,int id,std::complex<double> * o,int beg,int end):eid(id),
		out(o),channel(ch),b(beg),e(end){}
};

struct DSAOutput{
	int region;
	//std::complex<double> *out;
	double begintime;
	unsigned int duration;
	double max;
	std::vector< std::vector<double> > data;

};

struct BMPBuffer{
	int ch;
	Bitmap *bmp;
};


#define WA_DSA_LAYOUT_ALL 0					//all channel in a single graph
#define WA_DSA_LAYOUT_HEMICMP 1		//comparison between left and right

#endif